import request from '@/utils/request'
//设计列表列表
export function getdesignList(data) {
  return new Promise((resolve, reject) => {
    request({
      url: '/api/poster.design/list',
      method: 'get',
      data
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}
//设计详情
export function getdesignDetail(id) {
  return new Promise((resolve, reject) => {
    request({
      url: `/api/poster.design/detail?id=${id}`,
      method: 'get',
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}
//删除设计
export function getdesignDetele(id) {
  return new Promise((resolve, reject) => {
    request({
      url: '/api/poster.design/delete',
      method: 'post',
	  params:{
		  id
	  }
    }).then(data => {
      resolve(data)
    }).catch((e) => {
		console.log(e);
      reject(e)
    })
  })
}